
ticketHub.controller('jhOrderBackCtrls',function($scope,$http){	
	$scope.postData = {			
			 "fetchDate": "", 
	};
	
	$scope.query = function(){
		for(i in $scope.postData){
			if($scope.postData[i]==""){
				layer.msg("搜索条件不能为空");
				return false;
			}
		}
		layer.load(3,{shadeClose:true});//加载层；
		$http({
			url:'../orderChangeBack/refundOrderListFetch?temp='+Math.random(),
			method:'post',
			data:{
				"fetchDate":$scope.postData.fetchDate+" 00:00:00"
			}
		}).success(function(data,header,config,status){
			layer.closeAll();			
			if(data.status=="1001"){
				if(data.data.total=="0"){
					layer.alert("查询结果为空!")
				}else{					
					$scope.list = data.data.resultList;
					console.log($scope.list)
				}				
			}else{
				layer.alert("查询失败，"+data.message)
			}
			//响应成功
		}).error(function(data,header,config,status){
			layer.closeAll();	
			console.log(data)
			layer.alert("请求失败，请检查网络连接")
			//处理响应失败
		});
	}
})
	
	
